import React from 'react'
const Home = React.lazy(() => import('../views/home'))
const List = React.lazy(() => import('../views/list'))
const MainLayout = React.lazy(() => import('../views/mainLayout'))
const Login = React.lazy(() => import('../views/login'))
export const ROUTER_LIST_CHILDREN = [
  {
    path: '/',
    element: <Home />,
    title: '首页',
  },
  {
    path: '/list',
    element: <List />,
    title: '列表',
  },
]
export const ROUTER_LIST = [
  {
    path: '/',
    element: <MainLayout />,
    children: ROUTER_LIST_CHILDREN,
  },
  {
    path: '/login',
    element: <Login />,
  },
]
